package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     *
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * @return
     * @Author zhaoxw
     * @Description //新增员工
     * @Date 13:52 2024/1/25
     **/
    void save(EmployeeDTO employeeDTO);

    /**
     * @Author zhaoxw
     * @Description //TODO 员工分页查询
     * @Date 10:06 2024/1/26
     * @return
     **/
    PageResult<Employee> pagequery(EmployeePageQueryDTO employeePageQueryDTO);

    void satrtOrStpo(Integer status, Long id);

    Employee getById(Long id);

    void edit(EmployeeDTO employeeDTO);
}
